package com.mars.foodserver.controller.app;

import com.mars.foodserver.controller.common.BaseController;
import com.mars.foodserver.response.result.R;
import com.mars.foodserver.response.vo.FoodCommentVo;
import com.mars.foodserver.service.IFeedbackService;
import com.mars.foodserver.service.IFoodCommentService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author wq
 * @since 2021-07-21
 */
@RestController
@RequestMapping("food/feedback")
@AllArgsConstructor
public class FeedbackController extends BaseController {

    final IFeedbackService feedbackService;

    /**
     * 创建反馈
     */
    @GetMapping("/create")
    public R<Void> feedback(String content, String image) {
        feedbackService.feedback(getUserId(), content, image);
        return R.success();
    }

}
